package com.game.backend.controller.user.bot;

import com.game.backend.model.Bot;
import com.game.backend.service.user.bot.GetListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/user/bot")
public class GetListController {
    @Autowired
    private GetListService getListService;

    @RequestMapping("/getlist")
    public List<Bot>  getList(){
        return getListService.getList();
    }
}
